#pragma once
#include <assert.h>
#include <stdlib.h>
typedef int STDatatype;
typedef struct Stack
{
	STDatatype* arr;
	int top;
	int capacity;
}ST;

void STInit(ST& rs, int n = 7);

void STPush(ST& rs, STDatatype x);

int& STtop(ST& rs);


void STDstory(ST& rs);